package kr.hkit.powerjava.alone.windowbuider;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.GridLayout;
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.BoxLayout;
import java.awt.CardLayout;
import java.awt.GridBagLayout;
import java.awt.GridBagConstraints;
import java.awt.Insets;
import net.miginfocom.swing.MigLayout;

public class CenterPanel extends JPanel {
	private JTextField textField;

	/**
	 * Create the panel.
	 */
	public CenterPanel(String s) {
		setLayout(new GridLayout(0, 2, 0, 0));

		JLabel lblUntitled = new JLabel(s);
		add(lblUntitled);

		textField = new JTextField();
		textField.setColumns(10);
		add(textField);

	}

	public String getTextField() {
		return textField.getText();
	}

	public void setTextField(String text) {
		textField.setText(text);
	}

}
